package com.sporadic.client.service.impl;

import com.sporadic.client.mapper.UserMapper;
import com.sporadic.client.pojo.User;
import com.sporadic.client.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User UserSessionKey(String userSessionKey) {
        return this.userMapper.UserSessionKey(userSessionKey);
    }

    @Override
    public int insUser(User user) {
        return this.userMapper.insUser(user);
    }

    @Override
    public int updUser(User user) {
        return this.userMapper.updUser(user);
    }
}
